]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appMenu: Only include non-skip-taskbar windows
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 12 Aug 2021 00:34:12 +0000 (02:34 +0200)
committerMarge Bot <marge-bot@gnome.org>
Mon, 16 Aug 2021 21:28:22 +0000 (21:28 +0000)
There's a subtle difference between the top bar menu and the app
icon context menus in the overview regarding the "Open Window"
section.

The former includes skip-taskbar windows, the latter doesn't. It
clearly doesn't make sense for the context menu to include windows
that aren't shown in the overview, but skip-taskbar windows are
likely also less useful in the top bar menu.

Just settle on the behavior of the context menus and move on.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1948>

js/ui/appMenu.js

index f1256f7c4daae3170fdde6fa7770fc76f1db5a3d..3c363bf9cc5ef89d617907329b3562d7990e48c1 100644 (file)
@@ -166,7 +166,7 @@ var AppMenu = class AppMenu extends PopupMenu.PopupMenu {
         if (!this._app)
             return;
 
-        const windows = this._app.get_windows();
+        const windows = this._app.get_windows().filter(w => !w.skip_taskbar);
         if (windows.length < 2)
             return;